package com.wenheng.service.impl;

import com.wenheng.Mapper.EasybuyProductMapper;
import com.wenheng.service.CommodityService;
import com.wenheng.vo.entity.EasybuyProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: 文恒
 * @Date: 2021/3/22 - 03 - 22 -11:38
 * @Description:com.wenheng.service.impl
 * @version:1.0
 */
@Service
public class CommodityServiceImpl implements CommodityService{
    @Autowired
    private EasybuyProductMapper easybuyProductMapper;

    @Override
    public EasybuyProduct findSeckill(Integer id) {
        return easybuyProductMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<EasybuyProduct> findProduct() {
        return easybuyProductMapper.findProduct();
    }
}
